package com.example.xd.dialtest.buildtest;

/**
 * @auther XuDan on 2020/1/16.
 */
public class DirectorComputer {
    private ComputerBuilder mBuilder;

    public DirectorComputer(ComputerBuilder builder) {
        mBuilder = builder;
    }

    public HPComputer createHPComputer() {
        HPComputer mHPComputer = new HPComputer();
        mHPComputer.setCPU(mBuilder.createCPU());
        mHPComputer.setMainBord(mBuilder.createMainBord());
        mHPComputer.setRom(mBuilder.createRom());
        return mHPComputer;
    }


}
